<%@ page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"
	trimDirectiveWhitespaces="true"%>
<%@page import="java.util.Date"%>
<%@ include file="../admin.inc.jsp"%>

<script type="text/javascript">

</script>
<form id="pagerForm" action="${webContextPath}/admin/modelPickup/pickup">
	<input type="hidden" name="pageNum" value="1">
	<input type="hidden" name="numPerPage" value="${pageInfo.numPerPage}">
	<input type="hidden" name="orderField" value="${param.orderField}">
	<input type="hidden" name="orderDirection" value="${param.orderDirection}">
	
</form>
<div class="pageHeader">
	
	<input type="hidden" name="pageNum" id="pageNum" value="${pageInfo.pageNum}" />
	<input type="hidden" name="numPerPage" id="numPerPage" value="${pageInfo.numPerPage}"/>
	<div class="searchBar">
		<form rel="pagerForm" method="post" action="${webContextPath}/admin/modelPickup/pickup" onsubmit="return dwzSearch(this, 'dialog');">
		<ul class="searchContent">
			<li>
				<label>模特姓名：</label>
				<input id="name" type="text" name="name" value="${name }"  class="textInput">
			</li>
			<li>
				<label>价格：</label>
				<input id="name" type="text" name="price" value="${price }"  class="textInput">
			</li>
			<li>
				<label>所属公司：</label>
				<select id = "companyId" name="companyId" >
					<option value="">-请选择-</option>
					<c:forEach var="item" items="${companyList}">
		            	<option value="${item.id}"  ${companyId==item.id?"selected":""}>${item.name}</option>
		            </c:forEach>
				</select> 
			</li>
		</ul>
		<div class="subBar">
			<ul>
				<li><div class="buttonActive"><div class="buttonContent"><button type="submit">搜索</button></div></div></li>
			</ul>
		</div>
		</form>
	</div>
</div>
<div class="pageContent j-resizeGrid">
	<div class="grid"  layouth="91" style="width: 100%; overflow: auto;">
	<table class="table" width="100%">
		<thead>
			<tr>
				<th width="40">ID</th>
				<th width="70">公司</th>
				<th width="70">封面</th>
				<th width="70">名称</th>
				<th width="50">价格</th>
				<th width="60">操作</th>
			</tr>
		</thead>
		<tbody style="text-align:center">
			<c:forEach var="item" items="${list}">
				<tr target="newsId" rel="${item.id}" style="">
					<td>${item.id}</td>
					<td>${item.companyName}</td>
					<td><img src="${item.coverImage}"  style="height:40px;"></td>
					<td>${item.name}</td>
					<td>${item.price}</td>
					<td style="align:center">
						<a class="btnSelect" href="javascript:$.bringBack({id:${item.id}, name:'${item.name}', coverImage:'${item.coverImage}'})" title="查找带回">选择</a>
					</td>
				</tr>
			</c:forEach>
		</tbody>
	</table>
	</div>
	<div class="panelBar" style="bottom:0px">
		<div class="pages">			
			<span>共${size}条</span>
		</div>
		<div class="pagination" targetType="dialog" totalcount="${size}" 
		numperpage="${pageInfo.numPerPage}" pagenumshown="10" currentpage="${pageInfo.pageNum}">
		</div>
	</div>

</div>